package bitCalculation;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

/**
 * Created by fengliejv on 2017/10/27.
 */
public class SingleNumber136 {

    public int singleNumber(int[] nums) {
        int result = 0;
        for (int i = 0; i < nums.length; i++) {
            result = result ^ nums[i];
        }
        return result;
    }
}
